package com.example.config.common;

import java.util.List;

import com.example.processor.common.ReqParamMethodProcessor;
import org.springframework.stereotype.Component;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2022/7/26 15:49
 */
@Component
public class MyMvcConfigurer implements WebMvcConfigurer {

    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
        resolvers.add(new ReqParamMethodProcessor());
    }
}
